/* styles.css – Basislayout für SEO-freundliche Website */

:root {
    --color-primary: #0a66c2;
    --color-text: #222;
    --color-bg: #fff;
    --color-border: #e5e7eb;
}

html {
    color-scheme: light dark;
    font-size: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header,
main,
footer {
    display: block;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

nav a[aria-current="page"] {
    font-weight: 700;
}

.grey {
    background: #f8f8f8;
    color: #555;
}

/* Aufzählung */
.checklist {
    list-style: none;
    /* Standardpunkte entfernen */
    padding-left: 0;
    /* Einrückung entfernen */
    margin: 1rem 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    /* Platz für das Häkchen */
    margin-bottom: .5rem;
}

.checklist li::before {
    content: "✔";
    /* Häkchen-Zeichen */
    color: green;
    /* Farbe frei wählbar */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Aufzählung zweispaltig */
.two-columns {
    list-style: disc inside;
    /* normale Bullets */
    margin: 1rem 0;
    padding: 0;
}

.two-columns li {
    margin-bottom: .5rem;
}

/* ab 640px zwei Spalten */
@media (min-width: 640px) {
    .two-columns {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
        column-gap: 2rem;
    }

    .two-columns li {
        break-inside: avoid;
    }

}


/* Buttons */
.btn-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #da291c;
    /* Brandfarbe */
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: #aa231a;
}

.btn-cta:focus {
    outline: 3px solid #aa231a;
    outline-offset: 2px;
}

/* Slider*/
/* === Slider: 10 Bilder sichtbar, einheitliche Höhe === */
.slider {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Viewport bekommt eine Höhe – responsive über clamp */
.slider-viewport {
    overflow: hidden;
    flex: 1;
    height: clamp(140px, 18vw, 240px);
    /* <-- hier stellst du die sichtbare Bildhöhe ein */
}

/* Track und Slides über volle Höhe */
.slider-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    align-items: center;
    /* vertikal mittig */
}

.slide {
    flex: 0 0 10%;
    /* genau 10 sichtbar */
    height: 100%;
    padding: .25rem;
    /* Abstand statt gap */
    display: flex;
    align-items: center;
    justify-content: center;
}

span.listpoint {
    font-weight: bold;
}

/* Bilder füllen die Höhe der Zelle */
.slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* oder 'cover' falls vollständig füllen mit Beschnitt */
    display: block;
    /* optional Rahmen: */
    /* border: 1px solid var(--color-border); border-radius: .35rem; */
}

/* Buttons */
.slider-btn {
    appearance: none;
    border: 1px solid var(--color-border);
    background: #fff;
    color: #111;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .1s ease;
}

.slider-btn:hover {
    transform: scale(1.06);
}

.slider-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.slider-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Falls du auf kleineren Screens weniger als 10 zeigen willst, aktivieren:
@media (max-width: 640px) { .slide { flex-basis: 20%; } }   // 5 sichtbar
@media (min-width: 641px) and (max-width: 1023px) { .slide { flex-basis: 12.5%; } } // 8 sichtbar
*/


/* Buttons */
.slider-btn {
    appearance: none;
    border: 1px solid var(--color-border);
    background: #fff;
    color: #111;
    width: 2.25rem;
    font-size: 1.25rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .1s ease;
}

.slider-btn:hover {
    transform: scale(1.06);
}

.slider-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Tastaturfokus */
.slider-viewport:focus,
.slider-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Optional: auf sehr schmalen Screens weniger als 10 anzeigen? 
   -> Wenn NICHT gewünscht, die Media Queries weglassen */
@media (max-width: 640px) {
    .slide {
        flex-basis: 20%;
    }

    /* 5 sichtbar */
}

@media (min-width: 641px) and (max-width: 1023px) {
    .slide {
        flex-basis: 12.5%;
    }

    /* 8 sichtbar */
}

@media (min-width: 1024px) {
    .slide {
        flex-basis: 10%;
    }

    /* 10 sichtbar (default) */
}




/* Grid Layout */
.grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 1.25rem;
    padding: 3em;
}

/* Mobile First: 1 Spalte */
.grid {}

/* Tablet: 2 Spalten (Content + Sidebar) */
@media (min-width: 768px) {
    .grid {}
}

/* Desktop: breiteres Grid */
@media (min-width: 1200px) {
    .grid1-small {
        padding: 0 6em;
    }
}

/* Zweispaltiges Layout für Bild + Text */
.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid2 {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    border-top: 1px solid var(--color-border);
    padding: .5rem;
    text-align: left;
}

/* Zugänglichkeit */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.grid1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* zweite Spalte doppelt so breit */
    gap: 1.5rem;
    /* Abstand zwischen den Spalten */
    align-items: start;
    /* optional: vertikale Ausrichtung */
}

/* mobil: 1 Spalte untereinander */
@media (max-width: 640px) {
    .grid1-2 {
        grid-template-columns: 1fr;
    }
}

.vp {
    background-image: url(https://bedruckte.schweizer-messer.de/files/vx/geschenkverpackungen/Vx_Geschnkschachtel_Hintergrund_1920px.webp);
    background-position: 50% -16.4134px;
}

.last-cta {
    background-image: url(https://bedruckte.schweizer-messer.de/files/vx/grafiken/website_BG.jpg);
    background-position: 50% -16.4134px;
}